package demo08;

/**
 * @author: WangPeng
 * @createTime: 2022/11/01 22:12
 * @description:
 * @version: v1.0
 */
public class Girl extends Thread{
    private BankCard bankCard;

    public Girl (BankCard bankCard){
        this.bankCard=bankCard;

    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            bankCard.qu(1000);
        }
    }

}
